package com.flyme.module.base.client.api;


import com.flyme.common.core.model.ResultBody;
import com.flyme.common.core.model.query.PagerInfo;
import com.flyme.module.base.client.entity.SysMessage;
import org.springframework.web.bind.annotation.*;

/**
 * @author zyf
 */
@RequestMapping("/message")
public interface SysMessageRemoteService {
    
    @PostMapping(value = "/list")
    ResultBody list(@ModelAttribute PagerInfo pagerInfo, @ModelAttribute SysMessage message);
    
    @GetMapping(value = "/get/{id}")
    ResultBody get(@PathVariable String id);
    
    @PostMapping(value = "/add")
    ResultBody add(@ModelAttribute SysMessage message);

    @PostMapping(value = "/sendMsg")
    ResultBody sendMsg(@ModelAttribute SysMessage message);
    
    @PostMapping(value = "/edit")
    ResultBody edit(@ModelAttribute SysMessage message);
    
    @PostMapping(value = "/delByIds/{ids}")
    ResultBody del(@PathVariable Long[] ids);

    @PostMapping(value = "/newsList")
    ResultBody newsList(@ModelAttribute PagerInfo pagerInfo, @ModelAttribute SysMessage message);

    @PostMapping(value = "/addNews")
    ResultBody addNews(@ModelAttribute SysMessage message);

    @PostMapping(value = "/delNewsByIds/{ids}")
    ResultBody delNews(@PathVariable Long[] ids);

    @PostMapping(value = "/editNews")
    ResultBody editNews(@ModelAttribute SysMessage message);
}
